home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 1997 April to September / Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso / products / bin / httpd / src / new.h < prev    next >
C/C++ Source or Header  |  1995-05-18  |  2KB  |  100 lines

  1. /* 
  2.  *  New Header file, since I didn't like recompiling the whole thing 
  3.  *  every time I wanted to do anything.
  4.  *
  5.  * One of these days, I'll have to make some real header files for this code.
  6.  *
  7.  * All code contained herein is covered by the Copyright as distributed
  8.  * in the README file in the main directory of the distribution of 
  9.  * NCSA HTTPD.
  10.  *
  11.  */
  12.  
  13. #include <setjmp.h>
  14.  
  15. /* #defines for new muli-child approach
  16.   DEFAULT_START_DAEMON defines how many children start at httpd start
  17.   DEFAULT_MAX_DAEMON defines how many children can start
  18.   */
  19.  
  20. #define DEFAULT_START_DAEMON    5
  21. #define DEFAULT_MAX_DAEMON    10
  22.  
  23. /* For New Error Handling */
  24. #define NUM_ERRORS      10
  25. #define CGI_ERROR    1
  26. #define TEXT_ERROR    2
  27.  
  28. typedef struct _ChildInfo {
  29.   int parentfd;
  30.   int childfd;
  31.   int pid;
  32.   int busy;
  33. } ChildInfo;
  34.  
  35. typedef struct _ErrorMessage {
  36.   int Type;
  37.   int ErrorNum;
  38.   char* ErrorFile;
  39. } ErrorMessage;
  40.  
  41. /* in http_log.c */
  42. extern const char StatLine200[];
  43. extern const char StatLine302[];
  44. extern const char StatLine304[];
  45. extern const char StatLine400[];
  46. extern const char StatLine401[];
  47. extern const char StatLine403[];
  48. extern const char StatLine404[];
  49. extern const char StatLine500[];
  50. extern const char StatLine501[];
  51. extern int ErrorStat;
  52. extern int numErrorsDefined;
  53.  
  54. /* in http_mime.c */
  55. extern char *status_line;
  56. extern struct mime_ext *types[27];
  57. extern struct mime_ext *forced_types;
  58. extern struct mime_ext *encoding_types;
  59. extern struct mime_ext *Saved_Forced;
  60. extern struct mime_ext *Saved_Encoding;
  61. char* set_stat_line();
  62. void reset_mime_vars();
  63.  
  64. /* for http_ipc.c */
  65. int pass_fd(int spipefd, int filedes);
  66. int recv_fd(int spipefd);
  67. #ifdef NEED_SPIPE
  68. int s_pipe(int fd[2]);
  69. #endif
  70.  
  71. /* for http_log.c */
  72. int add_error(char* errornum, char* name);
  73. int have_error(int errornum);
  74. void reset_error();
  75.  
  76. /* for http_config.c */
  77. extern int max_servers;
  78. extern int start_servers;
  79. /* number of security directives in access config file */
  80. extern int num_sec_config;    
  81.  
  82. /* for httpd.c */
  83. void speed_hack_libs();
  84. void set_group_privs();
  85. void set_signals();
  86.  
  87. /* new globals in http_request.c */
  88. extern char method[];
  89. extern char protocal[];
  90. extern char the_request[];
  91. extern char failed_request[];
  92. extern char as_requested[];
  93. extern char url2[];
  94. extern char failed_url[];
  95. extern char args2[];
  96. void initialize_request();
  97.  
  98. /* for http_access.c */
  99. void reset_security();
  100.